﻿<common:PageBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:common="using:dwindleUrl.Common"
    xmlns:prism="using:Microsoft.Practices.Prism.Mvvm"
    xmlns:DesignTime="using:dwindleUrl.DesignTime"
    x:Class="dwindleUrl.Views.DetailsPage"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">

    <d:Page.DataContext>
        <DesignTime:DetailsPageViewModel/>
    </d:Page.DataContext>

    <Hub Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Hub.Header>
            <StackPanel Orientation="Horizontal">
                <AppBarButton Icon="Back" VerticalAlignment="Bottom"
                                  Command="{Binding GoBackCommand}"/>
                <TextBlock Text="{Binding Item.Text}"/>
            </StackPanel>
        </Hub.Header>
        <HubSection Background="{Binding Item.Brush}">
            <DataTemplate>
                <TextBox MinWidth="400" Text="{Binding Item.Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         Header="Color Name"/>
            </DataTemplate>

        </HubSection>
    </Hub>
</common:PageBase>
